package com.pmcc.cj.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pmcc.core.entity.UUIDEntity;
import com.pmcc.utils.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 机手认证
 * Created by tomas on 2020/10/11.
 */
@Entity
@Table(name = "cj_robot_attest")
public class CjRobotAttest extends UUIDEntity {
    @Column(name = "customer_id")
    private String customerId;//申请人id
    @Column(name = "name")
    private String name;//姓名
    @Column(name = "positive_card")
    private String positiveCard;//身份证正面
    @Column(name = "back_card")
    private String backCard;//身份证反面
    @Column(name = "robot_card")
    private String robotCard;//无人机驾驶证
    @Column(name = "robot_desc",length = 2000)
    private String robotDesc;//无人机概况描述
    @Column(name = "insurance",length = 2000)
    private String insurance;//保险情况
    @Column(name = "create_date")
    private Date createDate;
    //审核状态  0：审核中    1：已审核  2：被拒绝
    @Column(name = "fettle")
    private Integer fettle;
    @Column(name = "verify_time")
    private Date verifyTime;//审核人时间
    @Column(name = "qr_code")
    private String qrCode;//二维码
    @Column(name = "robot_flag")
    private Integer robotFlag;//机手是否推送任务，0：推送   1：不推送（如果一旦改为不推荐的时候，对应的客户表字段也需要同步）

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPositiveCard() {
        return positiveCard;
    }

    public void setPositiveCard(String positiveCard) {
        this.positiveCard = positiveCard;
    }

    public String getBackCard() {
        return backCard;
    }

    public void setBackCard(String backCard) {
        this.backCard = backCard;
    }

    public String getRobotCard() {
        return robotCard;
    }

    public void setRobotCard(String robotCard) {
        this.robotCard = robotCard;
    }

    public String getRobotDesc() {
        return robotDesc;
    }

    public void setRobotDesc(String robotDesc) {
        this.robotDesc = robotDesc;
    }

    public String getInsurance() {
        return insurance;
    }

    public void setInsurance(String insurance) {
        this.insurance = insurance;
    }
    @JsonSerialize(using = DateTimeFormat.class)
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getFettle() {
        return fettle;
    }

    public void setFettle(Integer fettle) {
        this.fettle = fettle;
    }
    @JsonSerialize(using = DateTimeFormat.class)
    public Date getVerifyTime() {
        return verifyTime;
    }

    public void setVerifyTime(Date verifyTime) {
        this.verifyTime = verifyTime;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public Integer getRobotFlag() {
        return robotFlag;
    }

    public void setRobotFlag(Integer robotFlag) {
        this.robotFlag = robotFlag;
    }
}
